﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using PowerCreator.LMS.Common.Script;


public partial class sysadmin_MainToMenu :PowerCreator.LMS.Web.Base.BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BinderPG();
        }
    }
    private void BinderPG()
    {
        PowerCreator.LMS.Web.User.LoginEntity login = (PowerCreator.LMS.Web.User.LoginEntity)Session[PowerCreator.LMS.Web.Config.WebConfig.SESSION_USER_USERINFO];

        if (login != null)
        {
            lblRealName.Text = login.UserName;
        }
        else
        {
            lblRealName.Text = GetLanageValueByKey("Login_UserNoRole", PowerCreator.LMS.Language.LanagetItemType.MSG);
        }
    }
    protected void btn_Clear_Click(object sender, ImageClickEventArgs e)
    {
        Session.Clear();
        Script.RedirectNewUrl(PowerCreator.LMS.Common.Utils.WebUtils.WebRoot + PowerCreator.LMS.Web.Config.WebConfig.URL_SYS_DEFAULT);
    }
}
